package com.ouc.edu.ssm.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ouc.edu.ssm.bean.User;
import com.ouc.edu.ssm.mapper.UserMapper;
import com.ouc.edu.ssm.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author: yyi
 * @date: 2018/8/21 15:30
 * @parameters:
 * @desc:
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {
    public Page<User> selectUserPage(Page<User> page) {
        page.setRecords(baseMapper.selectUserList(page));
        return page;
    }
}
